﻿namespace GoodAdmin.System;
public class ConfigSeedData : ISqlSugarEntitySeedData<SysConfig>
{
    public IEnumerable<SysConfig> HasData()
    {
        return new[]
    {
            //new SysConfig{ Name = "演示环境", ConfigKey="sys_demo", ConfigValue="False", Category = CategoryConst.SYS_CONFIG, Remark="演示环境",   },
            new SysConfig{ Id= 400000000000001,Name = "默认密码", ConfigKey=ConfigConst.SYS_DEFAULT_PASSWORD, ConfigValue="123456", Category = CategoryConst.SYS_CONFIG, Remark="默认密码"  },
            new SysConfig{ Id= 400000000000002,Name = "登录密码允许输入错误次数", ConfigKey=ConfigConst.SYS_PASSWORD_WRONG_NUMBER, ConfigValue="1", Category = CategoryConst.SYS_CONFIG, Remark="登录密码允许输入错误次数"  },
            new SysConfig{ Id= 400000000000003,Name = "登录密码错误锁定策略", ConfigKey=ConfigConst.SYS_PASSWORD_WRONG_STRATEGY, ConfigValue=CommonConst.LOCK_USER, Category = CategoryConst.SYS_CONFIG, Remark="登录密码错误锁定策略"  },
            new SysConfig{ Id= 400000000000004,Name = "解除锁定时间（分钟）", ConfigKey=ConfigConst.SYS_LOGIN_DELAY_TIME, ConfigValue="10", Category = CategoryConst.SYS_CONFIG, Remark="解除锁定时间（分钟）"  },
            //new SysConfig{ Name = "操作日志", ConfigKey="sys_oplog", ConfigValue="True", Category = CategoryConst.SYS_CONFIG, Remark="开启操作日志"  },
            new SysConfig{ Id= 400000000000005,Name = "单点登录", ConfigKey = ConfigConst.SINGLE_LOGIN, ConfigValue = "False", Category = CategoryConst.SYS_CONFIG, Remark = "开启单点登录"},
            new SysConfig{ Id= 400000000000006,Name = "开启图形验证码", ConfigKey = ConfigConst.SYS_CAPTCHA, ConfigValue = "False", Category = CategoryConst.SYS_CONFIG, Remark = "开启图形验证码"},
            new SysConfig{ Id= 400000000000007,Name = "开启水印", ConfigKey = ConfigConst.SYS_WARTERMARK, ConfigValue = "True", Category = CategoryConst.SYS_CONFIG, Remark = "开启水印"},
        };
    }
}
